-
Notifications
You must be signed in to change notification settings - Fork 304
Simplifying cudaq::state support. #3622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
79a7f6c to
6a19d57
Compare
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
e7e649e to
1345427
Compare
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
a0143e6 to
6f42aa6
Compare
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
6f42aa6 to
13f22f0
Compare
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
This PR greatly simplifies the use of cudaq::get_state by limiting its applicability strictly to local simulation execution contexts. Prior attempts were made to make cudaq::get_state generally available regardless of the target execution context. This level of support is being discontinued. - Move the qvector ctor overloads to the cudaq::state class. This simplifies qvector by making it only possible to initialize a qvector with a cudaq::state object and dropping all the overloads. - Fix tests. Adapt the regression tests. - Drop state with non-simulation targets. - Add code to distinguish between floats and complex floats and get rid of a bunch of redundant code that wasn't needed. Also, update tests. - Make all command line arguments be in the same order. - Don't implicit handle density matrix as a flattened vector (#6) Signed-off-by: Eric Schweitz <[email protected]>
Signed-off-by: Thien Nguyen <[email protected]>
Signed-off-by: Eric Schweitz <[email protected]>
3c5a271 to
a2881c9
Compare
sacpis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks @schweitzpgi.
|
Seems like we have a few test failures. |
|
CUDA Quantum Docs Bot: A preview of the documentation can be found here. |
This PR greatly simplifies the use of cudaq::get_state by limiting its applicability strictly to local simulation execution contexts. Prior attempts were made to make cudaq::get_state generally available regardless of the target execution context. This level of support is being discontinued.
Description